home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib6
/
v_08_11
/
8n11031a
< prev
next >
Wrap
Text File
|
1995-11-01
|
430b
|
27 lines
#include <stdio.h>
#include <stdlib.h>
main()
{
char *pc;
char string[21];
while (scanf("%20s", string) != EOF) {
pc = getenv(string);
if (pc == NULL)
printf("no such string defined\n");
else
printf("%s defined as >%s<\n", string, pc);
}
}
path
path defined as >c:\dos;c:\util;<
Path
Path defined as >c:\dos;c:\util;<
PATH
PATH defined as >c:\dos;c:\util;<
xyz
no such string defined